export default {
    name: 'Home',
    data() {
      return {
        imgList: [
        { 
           name: "1",
           src: require("@/assets/img/1.png"),
           title: ""
        },
        { 
           name: "2",
           src: require("@/assets/img/2.png"),
           title: ""
        },
         { 
           name: "3",
           src: require("@/assets/img/3.png"),
           title: ""
        },
         { 
           name: "4",
           src: require("@/assets/img/4.png"),
           title: ""
        },
        ],
        json:{
					list:[
						{
							src: require("@/assets/img/5.jpg"),
							des:'双肩包',
							price:129
						},
						{
							src: require("@/assets/img/6.jpg"),
							des:'手提包',
							price:68.9
						},
						{
							src: require("@/assets/img/3.jpg"),
							des:'钱包',
							price:32.9
						},
						{
							src: require("@/assets/img/4.jpg"),
							des:'手包',
							price:228
						}
						
					]
				}
      };
      
    },
  
    mouted() {
        // 获取div的ref=“carousel”的高度
        let carousel_height = window.getComputedStyle(this.$refs.carousel).height;
        // 赋值给 el-carousel中height动态绑定的carouselHeight
        this.carouselHeight = carousel_height
    }
  
  };